/**
 * Project Name:SimonFramework
 * File Name:BitmapProcessor.java
 * Package Name:com.simon.framework.image.core.process
 * Date:2016-5-19 下午3:48:33
 * Copyright (c) 2016, simon@cmonbaby.com All Rights Reserved.
 */
package com.cmonbaby.images.core.process;

import android.graphics.Bitmap;

/**
 * <p>Author:      Simon
 * <p>QO:          8950764
 * <p>Email:       simon@cmonbaby.com
 * <p>WebSize:     https://www.cmonbaby.com
 * <p>Version:     1.0.0
 * <p>Date:        2020/12/29
 * <p>Description: 在Bitmap上做一些处理。实现可将任何更改应用于原Bitmap。实现必须是线程安全的
 */
public interface BitmapProcessor {

    /**
     * Makes some processing of incoming bitmap.<br />
     * This method is executing on additional thread (not on UI thread).<br />
     * pre-processor} then don't forget {@linkplain Bitmap#recycle() to recycle} incoming bitmap if you return a new
     * created one.
     *
     * @param bitmap Original {@linkplain Bitmap bitmap}
     * @return Processed {@linkplain Bitmap bitmap}
     */
    Bitmap process(Bitmap bitmap);

}

